<?php

require_once(APPPATH.'models/component.php');

class pw_master_detail extends Component
{
    public $id          = 'pw_master_detail';
    public $title       = 'Master-Detail relationship handler';
    public $description = 'Master detail relationship with table add ajax CUD';
    public $keywords    = 'table relationship';

    public $attributes = array(
        'id' => array(
            "id"        => 'id',
            "example"   => "some_id"
        ),
        'table_class' => array(
            'id'      => 'table_class',
            'example' => 'table-striped'
        ),
        'show' => array(
            'id'      => 'show',
            'example' => 'true'
        ),
        'headers' => array(
            'id'      => 'headers',
            'example' => 'name|description|price'
        ),
        'contents' => array(
            'id'      => 'contents',
            'example' => 'name|description|price'
        ),
        'from' => array(
            'id'      => 'from',
            'example' => 'some_var'
        ),
        'item' => array(
            'id'      => 'item',
            'example' => 'item'
        )
    );

    public function parseAttributes($post = null)
    {
        return $post;
    }

} // class pw_master_detail

/* End of file pw_master_detail.class.php */
/* Location: ./components/pw_master_detail/pw_master_detail.class.php */